#!/bin/bash

mkdir -p /opt/swaptoken

docker run -idt \
    --name swaptoken \
    --network allinpay \
    -p 8200:8000 \
    -v /opt/swaptoken:/opt \
    -w /opt \
    --privileged=true \
    --restart=always \
    python:3.11 bash run-bash.sh

docker exec -it swaptoken bash    

mkdir -p ~/.pip
cat > ~/.pip/pip.conf << 'EOF'
[global]
index-url = https://mirrors.aliyun.com/pypi/simple
[install]
trusted-host = mirrors.aliyun.com
EOF

# pip install Flask   
# pip freeze > requirements.txt

pip install -r requirements.txt